package com.ailink.basic.string;

/**
 * Created by Administrator on 2018/10/9
 */
public class MyTest {
    public static void main(String[] args) {
//        "11".concat("cat");
//        char t = '汉';
        String s1 = new StringBuilder().append("aa").append("bb").toString();
        System.out.println(s1.intern() == s1);
        String s3 = "java";
        String s2 = new StringBuilder().append("ja").append("va").toString();
        System.out.println(s2.intern() == s2);
        System.out.println(s2.intern() == s3);
    }
}
